﻿using isvn.Base;
namespace isvn.Commands
{
    internal class Help : CommandBase
    {
        public override string CmdName
        {
            get { return "help"; }
        }

        //isvn help [cmd]
        public override void Execute(string[] args)
        {
            if (!ValidateArgs(args) || 1 == args.Length || string.IsNullOrEmpty(args[1]))
            {
                base.Help();
                return;
            }

            switch (args[1])
            {
                case "empty":
                    new Empty().Help();
                    return;

                default:
                    base.Help();
                    return;
            }
        }
    }
}
